define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {

    var Controller = {
        edit: function () {
            Controller.api.bindevent();
        },
        api: {
            bindevent: function () {
                $(document).on("change", "#c-switch", function(){
                    //开关切换后的回调事件
                    if ($(this).val() == 1) {
                        $("#hour_config").removeClass('hide')
                    } else {
                        $("#hour_config").addClass('hide')
                    }
                });
                Form.api.bindevent($("form[role=form]"));
            }
        }
    };
    return Controller;
});
